home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gwu / mon_int.c < prev    next >
C/C++ Source or Header  |  1996-01-30  |  1KB  |  47 lines

  1.  
  2.  
  3. /*
  4.     GWMON Parallel Ada Monitor for 386/486 PCs   
  5.     Copyright (C) 1993, Charles W. Kann  & Michael Bliss Feldman
  6.                         ckann@seas.gwu.edu mfeldman@seas.gwu.edu
  7.  
  8.     This program is free software; you can redistribute it and/or modify
  9.     it under the terms of the GNU General Public License as published by
  10.     the Free Software Foundation; either version 2 of the License.
  11.  
  12.     This program is distributed in the hope that it will be useful,
  13.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.     GNU General Public License for more details.
  16.  
  17.     You should have received a copy of the GNU General Public License
  18.     along with this program; if not, write to the Free Software
  19.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. */
  22.  
  23. #include <stdio.h>
  24. #include <signal.h>
  25. #include "ed.h"
  26. static void ctrl_break()
  27. {
  28.     CWK_CLEANUP_MON(1);
  29.         signal( SIGINT, ctrl_break );
  30. }
  31. void GWU_GET_MON()
  32. {
  33.     int ch;
  34.     signal( SIGTERM, ctrl_break );
  35.     signal( SIGINT, ctrl_break );
  36.     CWK_INIT_MON();
  37.     CWK_FIRST_SETUP();
  38.     if ( task_monitor )
  39.         CWK_TASK_SETUP();
  40.     else
  41.     {
  42.         CWK_SEQ_SETUP();
  43.         CWK_SETUP_WINDOWS();
  44.         CWK_Resize_Window();
  45.     }
  46. }
  47.